function asyncGetDocInfo(docName) {
    var docCatalog = new Zondy.Catalog.MapDoc({
        //设置地图文档的名称
        docName
    });
    /* 异步请求 http */
    return new Promise((resolve, reject) => {
        docCatalog.getLayersInfo(data => {
            let result = [];
            data.value.forEach(item => {
                let { GeomType, LayerIndex, Name } = item;
                result.push({
                    type: GeomType,
                    id: LayerIndex,
                    label: Name
                })
            })
            resolve(result);

        })
    })

}
export  { asyncGetDocInfo };